<ul class="nav navbar-nav">
    <ul class="nav navbar-nav">
        <li class="dropdown active">
            <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button"
               aria-haspopup="true" aria-expanded="false"> 项目：
                {% if request.project %}
                    {{ request.project.customer }}
                {% endif %}
            </a>
            <ul class="dropdown-menu">
                <li><i class="fa fa-list-ul" aria-hidden="true"></i> 进行中：</li>
                {% for row in queryset %}
                    <li>
{#                        <a href="{% url 'dashboard' p_id=row.id %}"> {{ row.project_name }}</a>#}
                        <a href="{% url 'project_view' p_id=row.id %}"> {{ row.customer }}</a>
                    </li>
                {% endfor %}

                <li role="separator" class="divider"></li>

                <li>
                    <i class="fa fa-balance-scale" aria-hidden="true"><a
                            href="{% url 'my_project_list' %}"> 所有项目</a></i>
                </li>
            </ul>
        </li>
    </ul>
</ul>